package com.itheima.xinxi.system.dao;

import com.itheima.xinxi.system.domain.Student;

/*
学生数据操作类
 */
public class StudentDao implements BaseStudentDao{
    //创建数组
    //数据类型[] 数组名= new 数据类型[长度]
    private static Student[] stus = new Student[40];

    static{
        Student stu1 = new Student("0001", "鹿晗", 29, "1991-01-01");
        Student stu2 = new Student("0002", "吴亦凡", 30, "1990-01-01");
        stus[0]=stu1;
        stus[1]=stu2;


    }

    @Override
    public boolean addStudent(Student student) {
        return false;
    }

    @Override
    public Student[] findAllStudents() {
        return new Student[0];
    }

    @Override
    public void deleteStudentById(String id) {

    }

    @Override
    public int getIndex(String id) {
        return 0;
    }

    @Override
    public void updateStudent(String id, Student student) {

    }
}
